import request from '@/utils/request'

export const login = ({ mobile, password }) => request({
  url: '/sys/login',
  method: 'post',
  data: { mobile, password }
})

export const getUserInfo = () => request({
  url: '/sys/profile'
})

export const updatePassword = ({ oldPassword, newPassword }) => request({
  url: '/sys/user/updatePass',
  method: 'put',
  data: { oldPassword, newPassword }
})
